<?
        $params[sid] = $sid;
        $params[action] = "services";
        $url = "$baseURL/$webDIR/?".encode_params($params);

        $data = get_service_prices();

        if($errorMsg) echo "<center>$errorMsg<center>";
        $errorMsg = "";
?>
<br>
<br>
<br>
<TABLE border=1 class='bTable' cellspacing='0'>
  <form action='<?=$url;?>' method='POST'>
        <TR>
      		<TH colspan='7'>Service Prices</TH>
        </TR>
        <TR>
      		<TH>Service</TH>
      		<TH>Quantity</TH>
      		<TH>Min. Price</TH>
      		<TH>Max. Price</TH>
      		<TH>Retail</TH>
        </TR>        
	<TR>
		<td>Additional storage prices</td>
		<td>100 MB</td>
		<td><input name='data[disk_space_min_price]' type='text' value='<?=$data[disk_space_min_price];?>'></td>
		<td><input name='data[disk_space_max_price]' type='text' value='<?=$data[disk_space_max_price];?>'></td>
		<td><input name='data[disk_space_real_price]' type='text' value='<?=$data[disk_space_real_price];?>'></td>
	</TR>
	<TR>
		<td>Additional traffic prices
		<td>1 GB</td>
		<td><input name='data[traffic_min_price]' type='text' value='<?=$data[traffic_min_price];?>'></td>
		<td><input name='data[traffic_max_price]' type='text' value='<?=$data[traffic_max_price];?>'></td>
		<td><input name='data[traffic_real_price]' type='text' value='<?=$data[traffic_real_price];?>'></td>
	</TR>	
	<TR>
		<td>Additional domain prices
		<td>1 Domain</td>
		<td><input name='data[domain_min_price]' type='text' value='<?=$data[domain_min_price];?>'></td>
		<td><input name='data[domain_max_price]' type='text' value='<?=$data[domain_max_price];?>'></td>
		<td><input name='data[domain_real_price]' type='text' value='<?=$data[domain_real_price];?>'></td>
	</TR>		
	<TR>
		<td>Additional IP prices
		<td>1 IP address</td>
		<td><input name='data[ip_min_price]' type='text' value='<?=$data[ip_min_price];?>'></td>
		<td><input name='data[ip_max_price]' type='text' value='<?=$data[ip_max_price];?>'></td>
		<td><input name='data[ip_real_price]' type='text' value='<?=$data[ip_real_price];?>'></td>
	</TR>
	<TR>
		<td>Additional SQL prices
		<td>1 MySQL database</td>
		<td><input name='data[db_min_price]' type='text' value='<?=$data[db_min_price];?>'></td>
		<td><input name='data[db_max_price]' type='text' value='<?=$data[db_max_price];?>'></td>
		<td><input name='data[db_real_price]' type='text' value='<?=$data[db_real_price];?>'></td>
	</TR>	
	<TR>
		<td>Additional SQL MB
		<td>1 MB</td>
		<td><input name='data[db_space_min_price]' type='text' value='<?=$data[db_space_min_price];?>'></td>
		<td><input name='data[db_space_max_price]' type='text' value='<?=$data[db_space_max_price];?>'></td>
		<td><input name='data[db_space_real_price]' type='text' value='<?=$data[db_space_real_price];?>'></td>
	</TR>		
        <TR>
                <td>SSH
                <td>Activate</td>
                <td><input name='data[ssh_min_price]' type='text' value='<?=$data[ssh_min_price];?>'></td>
                <td><input name='data[ssh_max_price]' type='text' value='<?=$data[ssh_max_price];?>'></td>
                <td><input name='data[ssh_real_price]' type='text' value='<?=$data[ssh_real_price];?>'></td>
        </TR>
        <TR>
                <td>Domain Registration
                <td>1</td>
                <td><input name='data[registerdomain_min_price]' type='text' value='<?=$data[registerdomain_min_price];?>'></td>
                <td><input name='data[registerdomain_max_price]' type='text' value='<?=$data[registerdomain_max_price];?>'></td>
                <td><input name='data[registerdomain_real_price]' type='text' value='<?=$data[registerdomain_real_price];?>'></td>
        </TR>
        <TR>
                <TD  align='center' colspan='7'>
                        <input type='submit' value='Submit'>
                </TD>
        </TR>
</form>
</TABLE>

